import uniqueId from '@form-create/utils/lib/unique';
import {localeProps, makeRequiredRule} from '../../utils';

const label = '车牌号';
const name = 'jd-carnumber';

export default {
    icon: 'icon-carnumber',
    label,
    name,
    rule({t}) {
        return {
            type: 'Jd-CarNumber',
            field: 'CPH',
            title: '车牌号',
            info: '',
            $required: false,
            validate: false,
            props: {}
        };
    },
    props(_, {t}) {
        return localeProps(t, name + '.props', [
            {type: 'input', field: 'placeholder', title: '占位文本'},
            makeRequiredRule(), 
        ]);
    }
};
